export default {
    state: {
        token: '',
        userInfo: {},
        shopInfo: {}
    },
    getters: {
        token: state => {
            return state.token
        },
        userInfo: state => {
            return state.userInfo
        },
        shopInfo: state => {
            return state.shopInfo
        }
    },
    mutations: {
        SET_TOKEN(state, data) {
            state.token = data;
        },
        SET_USERINFO(state, key, data) {
            state.userInfo[key] = data;
        },
        SET_SHOPINFO(state, key, data) {
            state.shopInfo[key] = data;
        }
    },
    actions: {

    }
}
